package com.dhcc.bpm.modules.orga.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.orga.entity.Userhome;
import com.dhcc.bpm.modules.orga.mapper.UserhomeMapper;
import com.dhcc.bpm.modules.orga.service.IUserhomeService;
import com.dhcc.bpm.modules.orga.vo.UserhomeVO;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserhomeServiceImpl
 * @Description 用户门户表 服务实现类
 * @Author daina
 * @Date 2020/2/24 19:25
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service("opc_user")
public class UserhomeServiceImpl extends BaseServiceImpl<UserhomeMapper, Userhome> implements IUserhomeService {

	@Override
	public IPage<UserhomeVO> selectUserPage(IPage<UserhomeVO> page, UserhomeVO user) {
		return page.setRecords(baseMapper.selectUserPage(page, user));
	}
	@Override
	public IPage<UserhomeVO> selectUserInfo(IPage<UserhomeVO> page, UserhomeVO user) {
		return page.setRecords(baseMapper.selectUserInfo(page, user));
	}
	@Override
	public List<UserhomeVO> listUser(UserhomeVO user) {
		return baseMapper.listUser(user);
	}

	@Override
	public List<Userhome> findOpcUser(String email, String phone) {
		return baseMapper.findOpcUser(email, phone);
	}

	@Override
	public List<Userhome> findOpcUserByEmailOrPhone(String email, String phone) {
		return baseMapper.findOpcUserByEmailOrPhone(email, phone);
	}

	@Override
	public IPage<UserhomeVO> listUserDev(IPage<UserhomeVO> page,UserhomeVO userhome) {
		return page.setRecords(baseMapper.listUserDev(page, userhome));
	}

}
